//
//  LBPlusMinusTool.h
//  loveBeen
//
//  Created by guofei on 2016/11/22.
//  Copyright © 2016年 loveBeen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LBSuperMarketProducts.h"
@class LBPlusMinusTool;

//小圆点代理方法
@protocol LBPlusMinusToolDelegate<NSObject>

-(void)ChangeTabbarCount:(LBPlusMinusTool *)MinusTools ;

@end


@interface LBPlusMinusTool : NSObject

@property(nonatomic, strong) NSMutableArray<LBSuperMarketProducts *> *selectedProductsModel;

//加减号操作中执行完毕执行 set方法,用代理方法更改小圆点的值
@property(assign,nonatomic)BOOL change;


@property(weak,nonatomic)id <LBPlusMinusToolDelegate> delegate;

@property(assign,nonatomic)BOOL allSelected;

//已经支付了的商品
@property(strong,nonatomic)NSMutableArray<LBSuperMarketProducts *> *payProductModel;

@property(strong,nonatomic)NSMutableArray<LBSuperMarketProducts *> *delProductModel;

@property(copy,nonatomic)NSString *location;

@property(copy,nonatomic)NSString *os;

+ (instancetype)sharedPlusMinusTool;


//返回所有商品总选数量
- (NSString *) allCount;



//是不是全选的状态
-(BOOL)isAllSelected;


//返回所选择商品的总价格

-(float)selectedProductPrice;


//刷新数据的发送监听方法
-(void)fastUpdate:(id)Object;

//是不是有商品被选中

-(BOOL)isSelected;

//
-(NSInteger)kindsOfSelectedProduct;
@end
